#include<bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
const int N=2e5+10;
#define INF 0x3f3f3f3f;
typedef long long int ll;
#define close(); std::ios::sync_with_stdio(false);cin.tie(0),cout.tie(0);
//----------------------------------------------------------------------------//
int a,b,c;
void solve()
{
	cin>>a>>b>>c;
	if(a>b&&a>c) cout<<0<<" ";
	else cout<<max(b,c)-a+1<<" ";
	
	if(b>c&&b>a) cout<<0<<" ";
	else cout<<max(a,c)-b+1<<" ";
	
	if(c>b&&c>a) cout<<0<<" ";
	else cout<<max(a,b)-c+1<<" ";
	
	cout<<"\n";
}

int main()
{
	close();
	//int T; cin>>T;
//	while (T--) solve();
	string s="1234";
	for(auto k :s) cout<<k<<" ";
	return 0;
}

